'use strict';

const BaseController = require('../base');

class CouponController extends BaseController {
  static get serviceName() {
    return 'business.coupon';
  }

  // 发放优惠券
  async distribute() {
    const { ctx } = this;
    const result = await this.service.distribute(ctx.request.body);
    ctx.success(result);
  }
}

module.exports = CouponController; 